import HttpCommonApiService from "./common/HttpCommonApi.service";

class ProvinceJsonHttpService {
    constructor() {
        this.httpCommonApiService = new HttpCommonApiService({
            baseURL: window.location.pathname.replace("/frontend/public", "/ly-web/province").replace("/dist/", "")
        })
    }

    querySingleProvinceJson(params) {
        let {adcode} = params;
        return this.httpCommonApiService.get(`/single?adcode=${adcode}`)
    }
}

export default new ProvinceJsonHttpService()
